package com.cskaoyan.bean.bo.front.login;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


/**
 * 登录
 *
 * @author 李然
 * @date 2022/10/13
 */
@Data
public class LoginBo {
    @NotBlank(message = "用户名和密码不为能为空")
    @Length(min = 6,max = 20,message = "用户名位数在8-20位之间")
    private String username;
    @Length(min = 6,max = 20,message = "密码位数在8-20位之间")
    private String password;
}
